package com.ruoyi.hotel.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.hotel.domain.HotelCheckHouseRecord;
import com.ruoyi.hotel.domain.vo.HotelCheckRecordDetail;
import org.apache.ibatis.annotations.Param;

/**
 * 入住记录Mapper接口
 *
 * @author sunye
 * @date 2024-11-15
 */
public interface HotelCheckHouseRecordMapper extends BaseMapper<HotelCheckHouseRecord>
{
    /**
     * 查询入住记录
     *
     * @param recordId 入住记录主键
     * @return 入住记录
     */
    public HotelCheckHouseRecord selectHotelCheckHouseRecordByRecordId(Long recordId);

    /**
     * 查询入住记录列表
     *
     * @param hotelCheckHouseRecord 入住记录
     * @return 入住记录集合
     */
    public List<HotelCheckHouseRecord> selectHotelCheckHouseRecordList(HotelCheckHouseRecord hotelCheckHouseRecord);


    /**
     * 删除入住记录
     *
     * @param recordId 入住记录主键
     * @return 结果
     */
    public int deleteHotelCheckHouseRecordByRecordId(Long recordId);

    /**
     * 批量删除入住记录
     *
     * @param recordIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteHotelCheckHouseRecordByRecordIds(Long[] recordIds);

    List<HotelCheckRecordDetail> selectHotelRecordByHouseId(Long houseId);

    HotelCheckHouseRecord selectCountByIdCard(@Param("idCard") String idCard,@Param("recordId")  Long recordId);
}
